class Payment {
  String? goodsCode;//商品编号
  String? goodsName;//商品名称
  String? orderNo;//支付订单号
  double? payAmount;//实付金额
  double? paidAmount;//支付金额
  String? paidCurrency;//支付币种

  Payment(
      {this.goodsCode,
        this.goodsName,
        this.orderNo,
        this.payAmount,
        this.paidAmount,
        this.paidCurrency});

  Payment.fromJson(Map<String, dynamic> json) {
    goodsCode = json['goodsCode'];
    goodsName = json['goodsName'];
    orderNo = json['orderNo'];
    payAmount = json['payAmount'];
    paidAmount = json['paidAmount'];
    paidCurrency = json['paidCurrency'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['goodsCode'] = goodsCode;
    data['goodsName'] = goodsName;
    data['orderNo'] = orderNo;
    data['payAmount'] = payAmount;
    data['paidAmount'] = paidAmount;
    data['paidCurrency'] = paidCurrency;
    return data;
  }
}